<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <title>Hello APP</title>
    <link rel="stylesheet" type="text/css" href="./css/api.css" />
    <style>
        #app{
            text-align: center;
        }
        #app>div{
            width: 200px;
            height: 50px;
            line-height: 50px;
            margin:  20px auto ;
            border: 1px solid blue;
        }
    </style>
</head>
<body>
    <div id="app">
        <div @click="enterWin('html/find/index','')">发现</div>
        <div @click="enterWin('html/home/index','?uid=135275')">个人主页</div>
        <div @click="enterWin('html/smashegg/index','?activeId=2')">砸蛋</div>
    </div>
</body>
<script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vue"></script>
<script type="text/javascript" src="./script/common.js"></script>
<script type="text/javascript">
apiready = function() {
    var vm = new Vue({
        el: '#app',
        data: {
        },
        methods:{
            enterWin:function(name,urlParam,params){
                openNewWin({
                    name:name,
                    urlParam:urlParam,
                    params:params
                })
            }
        }
    })
};
</script>
</html>